import request from '@/utils/request'

// 岗位维护与查询 查询
export function knowledgeFind(params) {
  return request({
    url: '/back/user-knowledge-post/find',
    method: 'POST',
    params
  })
}

// 岗位维护与查询 添加
export function knowledgeSave(params) {
    return request({
      url: '/back/user-knowledge-post/save',
      method: 'POST',
      params
    })
  }

  // 岗位维护与查询 修改
export function knowledgeUpd(params) {
    return request({
      url: '/back/user-knowledge-post/upd',
      method: 'POST',
      params
    })
  }

  // 岗位维护与查询 删除
export function knowledgeDel(params) {
    return request({
      url: '/back/user-knowledge-post/del',
      method: 'POST',
      params
    })
  }

    // 工作中心查工序  
export function findProcessGroup(params) {
    return request({
      url: '/back/processJobClass/findProcessGroup',
      method: 'POST',
      params
    })
  }

      // 文件导入后 人员信息查询
export function findByUser(params) {
  return request({
    url: '/back/user-knowledge-record/findByUser',
    method: 'POST',
    params
  })
}
  
    // 员工技能履历 查询
export function recordFind(params) {
    return request({
      url: '/back/user-knowledge-record/find',
      method: 'POST',
      params
    })
  }

      // 员工技能履历 新增
export function recordSave(params) {
    return request({
      url: '/back/user-knowledge-record/save',
      method: 'POST',
      params
    })
  }

      // 员工技能履历 修改  
export function recordUpd(data) {
    return request({
      url: '/back/user-knowledge-record/upd',
      method: 'POST',
      data
    })
  }

      // 员工技能履历 删除
export function recordDel(params) {
    return request({
      url: '/back/user-knowledge-record/del',
      method: 'POST',
      params
    })
  }

      // 员工技能履历 批量新增
export function recordSaveList(data) {
    return request({
      url: '/back/user-knowledge-record/saveList',
      method: 'POST',
      data
    })
  }

      // 员工技能履历 批量修改
export function recordUpdList(data) {
    return request({
      url: '/back/user-knowledge-record/updList',
      method: 'POST',
      data
    })
  }

        // 员工技能履历 打印
export function word03(params) {
  return request({
    url: '/device/word03',
    method: 'POST',
    params
  })
}

        // 员工技能履历 下载PDF
export function word03Download(params) {
  return request({  
    url: '/device/word03_download',
    method: 'POST',
    params
  })
}

        // 讲师&导师管理 查询
export function tutorFind(params) {
  return request({
    url: '/back/user-knowledge-tutor/find',
    method: 'POST',
    params
  })
}

      // 讲师&导师管理 新增
export function tutorSave(params) {
    return request({
      url: '/back/user-knowledge-tutor/save',
      method: 'POST',
      params
    })
  }
      // 讲师&导师管理 修改
export function tutorUpd(params) {
    return request({
      url: '/back/user-knowledge-tutor/upd',
      method: 'POST',
      params
    })
  }   
      // 讲师&导师管理 删除
export function tutorDel(params) {
    return request({
      url: '/back/user-knowledge-tutor/del',
      method: 'POST',
      params
    })
  }

        // 培训计划与案例 查询
export function programFind(params) {
  return request({
    url: '/back/user-knowledge-training-program/find',
    method: 'POST',
    params
  })
}
       // 岗位ID查有没有可选的工序
export function getByKnowledgePostId(data) {
  return request({
    url: '/back/user-knowledge-post-critical-process/getByKnowledgePostId',
    method: 'POST',
    data
  })
}

      // 培训计划与案例 新增
export function programSave(params) {
    return request({
      url: '/back/user-knowledge-training-program/save',
      method: 'POST',
      params
    })
  }
      // 培训计划与案例 修改
export function programUpd(params) {
    return request({
      url: '/back/user-knowledge-training-program/upd',
      method: 'POST',
      params
    })
  }
      // 培训计划与案例 删除
export function programDel(params) {
    return request({
      url: '/back/user-knowledge-training-program/del',
      method: 'POST',
      params
    })
  }

        // 员工转岗  查询
export function transferFind(params) {
  return request({
    url: '/back/user-knowledge-job-transfer/find',
    method: 'POST',
    params
  })
}
      // 员工转岗  新增
export function transferSave(params) {
    return request({
      url: '/back/user-knowledge-job-transfer/save',
      method: 'POST',
      params
    })
  }

        // 员工转岗  修改
export function transferUpd(params) {
  return request({
    url: '/back/user-knowledge-job-transfer/upd',
    method: 'POST',
    params
  })
}

      // 员工转岗  删除
export function transferDel(params) {
    return request({
      url: '/back/user-knowledge-job-transfer/del',
      method: 'POST',
      params
    })
  }

      // 员工转岗  审核列表
export function findAudit(params) {
    return request({
      url: '/back/user-knowledge-job-transfer/findAudit',
      method: 'POST',
      params
    })
  }

        // 员工转岗  审核
export function transferAudit(params) {
  return request({
    url: '/back/user-knowledge-job-transfer/audit',
    method: 'POST',
    params
  })
}

        // 转岗管理  进入页面调用，有多少员工
export function transferGet(params) {
  return request({
    url: '/back/user-knowledge-job-transfer/get',
    method: 'POST',
    params
  })
}

      // 传岗位状态
export function updUserKnowledgeRecordState(params) {
  return request({
    url: '/back/user-knowledge-job-transfer/updUserKnowledgeRecordState',
    method: 'POST',
    params
  })
}

      // 员工转岗批量导入
export function StateExcel(params) {
  return request({
    url: '/back/user-knowledge-job-transfer/userKnowledgeRecordStateExcel',
    method: 'POST', 
    params
  })
}

      // 打印上岗证
export function word04(data) {
  return request({
    url: '/device/word04',
    method: 'POST', 
    data
  })
}

      // 上岗证 下载pdf
export function word04Download(data) {
  return request({
    url: '/device/word04_download',
    method: 'POST', 
    data
  })
}

      // 打印关键工序上岗证
export function word05(data) {
  return request({
    url: '/device/word05',
    method: 'POST', 
    data
  })
}

      // 关键工序上岗证 下载pdf
export function word05Download(data) {
  return request({
    url: '/device/word05_download',
    method: 'POST', 
    data
  })
}

      // 员工履历传状态
export function userKnowledgeRecordState(data) {
  return request({
    url: '/back/user-knowledge-record/userKnowledgeRecordState',
    method: 'POST', 
    data
  })
}

      // 关键工序导入
export function CriticalProcessExcel(params) {
  return request({
    url: '/back/user-knowledge-record/UserKnowledgeRecordCriticalProcessExcel',
    method: 'POST', 
    params
  })
}

      // 员工信息修改关键工序
export function CriticalProcessName(params) {
  return request({
    url: '/back/user-knowledge-record/updUserKnowledgeRecordCriticalProcessName',
    method: 'POST', 
    params
  })
}

      // 关键工序管理查询
export function processFind(params) {
  return request({
    url: '/back/user-knowledge-post-critical-process/find',
    method: 'POST', 
    params
  })
}

      // 关键工序管理新增
export function processSave(data) {
  return request({
    url: '/back/user-knowledge-post-critical-process/save',
    method: 'POST', 
    data
  })
}

      // 关键工序管理修改
export function processUpd(params) {
  return request({
    url: '/back/user-knowledge-post-critical-process/upd',
    method: 'POST', 
    params
  })
}

      // 关键工序管理删除
export function processDel(params) {
  return request({
    url: '/back/user-knowledge-post-critical-process/del',
    method: 'POST', 
    params
  })
}

      // 查看培训原因
export function getById(data) {
  return request({
    url: '/back/user-knowledge-post/getById',
    method: 'POST', 
    data
  })
}